<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>addPurchasenote</title>
    <%@include file="../header.html" %>
        
</head>
<%String side_bar_page = basePath+"side_bar.jsp"; %>

<script type="text/javascript" src="./js/validator.js"></script>
<body >
    <div >
		<jsp:include page="../side_bar.jsp" flush="true"/> 
		<jsp:include page="../top_bar.jsp" flush="true"/> 

        </div>
<div  style="width:90%; float:right; margin:15px;">  

    <form action="addPurchasenote.action" method="post" onSubmit="return Validator.Validate(this,3)">  
        <table width="500" align="center">  
            <caption>添加采购信息</caption>  
            
         <!--      <tr height="26px">  
                <td width="150px" align="right">采购单ID</td>  
                <td width="350px">  
                    <input type="text"  name="purchasenote.purchasenoteid" value="${purchasenote.purchasenoteid}"/>  
                </td>  
            </tr>  -->  
            
            <tr height="26px">  
                <td width="150px" align="right">经办人</td>  
                <td width="350px">               
               <!--      <input type="text"  name="purchasenote.buyerid" value="${purchasenote.buyerid}"/>--> 
				  	
				  	 <select name="purchasenote.buyerid.userid">
					   <option value="">
					   </option>
					   <c:forEach var="user" items="${users }" >
					   <option value=${user.userid }>${user.username }</option>
					   </c:forEach>
					  </select>
  
                </td>  
            </tr>  
             
             <tr height="26px">  
                <td width="150px" align="right">部门</td>  
                <td width="350px">            
                    <select name="purchasenote.buyerdeptid.deptid">
					   <option value="">
					   </option>
					   <c:forEach var="dept" items="${depts }" >
					   <option value=${dept.deptid }>${dept.deptname }</option>
					   </c:forEach>
					  </select>
                </td>  
            </tr> 
            
       <!--     <tr height="26px">  
                <td width="150px" align="right">采购时间</td>  
                <td width="350px">     
                    <input type="text"  name="purchasenote.buytime" value="2016-05-26 10:23:30" dataType="Require" msg="输入不能为空"/>  
                </td>  
            </tr> -->    
            
               <tr height="26px">  
                <td width="150px" align="right">用途</td>  
                <td width="350px">             
                    <input type="text"  name="purchasenote.purpose"  dataType="Require" msg="输入不能为空"/>  
                </td>  
            </tr> 
                    
			<td hidden> 
						<input type="text" name="purchasenote.state" value="0" /></td>

       
               <tr height="26px">  
                <td colspan="2"  align="center" width="500">  
                    <input type="submit" value="保存"/>  
                    <input type="button" value="返回" onclick="window.history.back(-1)"/>  
                </td>  
            </tr>  
            
           
        </table>  
    </form>  
    
    </div>
     <%@include file="../footer.html" %>
     
</body>  
</html>  